		//查看所业绩面板
		var officePerformancePanel
		//查看所业绩窗口
		var officePerformanceWin;
		//所业绩查看函数
		function officePerformanceFun(){
			//查看所业绩窗口
			officePerformanceWin=new Ext.Window({
				layout:'fit',
				width:400,
				height:300,
				closeAction:'hide',
				plain:true,
				title:'所业绩查看窗口',
				items:officePerformancePanel
			});
			officePerformanceWin.show();
		}

		//查看所业绩面板
		 officePerformancePanel=new Ext.form.FormPanel({
			labelSeparator :'：',//分隔符
			labelWidth : 110,//标签宽度
			bodyStyle:'padding:5',//表单边距
			buttonAlign:'center',//按钮居中
			frame : true,
			collapsible: true,
			defaults : {
            width : 200
        },
        items : [
        {
        	xtype:'datefield',
        	format:'Y-m-d',
            fieldLabel :'开始时间',
			id :'officestartTime',
			name :'officestartTime',
			allowBlank :false
        },
        {
        	xtype:'datefield',
        	format:'Y-m-d',
            fieldLabel :'结束时间',
			id :'officeendTime',
			name :'officeendTime',
			allowBlank :false
        },
        {
        	height:30
        },
        {
        	 xtype:'textfield',
        	 fieldLabel :'合同总金额',
			 id :'officecontractMoney',
			 name :'officecontractMoney',
			 allowBlank :true
        },
        {
        	 xtype:'textfield',
        	 fieldLabel :'已付款总金额',
			 id :'officepayMoney',
			 name :'officepayMoney',
			 allowBlank :true
        },
         {
         	 xtype:'textfield',
        	 fieldLabel :'律师提成总金额',
			 id :'officeroyaltyMoney',
			 name :'officeroyaltyMoney',
			 allowBlank :true
        }
        ],

        buttons : [ {
            text : '查看',
            iconCls:'search',
            disabled : false,
            handler : function() {
                if (officePerformancePanel.form.isValid()) {
                    officePerformancePanel.form.submit( {
                        url : 'OfficePerformanceLook.jsj',
                        success : function(from, action) {
                        var result=action.result.message;
                         var resultArr=result.split("|");
                           Ext.getCmp("officecontractMoney").setValue(resultArr[0]);
                          Ext.getCmp("officepayMoney").setValue(resultArr[1]);
                          Ext.getCmp("officeroyaltyMoney").setValue(resultArr[2]);
                        },
                        failure : function(form, action) {
                            var result=action.result.message;
                         var resultArr=result.split("|");
                           Ext.getCmp("officecontractMoney").setValue(resultArr[0]);
                          Ext.getCmp("officepayMoney").setValue(resultArr[1]);
                          Ext.getCmp("officeroyaltyMoney").setValue(resultArr[2]);
                        },
                        waitMsg : '正在发送请求，稍后...'
                    });
                } else {
                    Ext.Msg.alert('信息', '请填写完成再提交!');
                }
            }
        },{
        text:'取消',
        iconCls:'cancel',
        handler:function(){
        officePerformanceWin.hide();
        }
        }
        ]
		})

